package cn.com.dhcc.turbo.entity.registry.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.registry.DomainInfo;
/**
 * 业务域RowWapper
 * 
 * @日期：2014-5-15 下午4:26:46
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
public class DomainInfoRowWapper implements RowMapper<DomainInfo> {

	@Override
	public DomainInfo mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		DomainInfo vo = new DomainInfo();
		vo.setId(rs.getString("id"));
		vo.setName(rs.getString("name"));
		vo.setCode(rs.getString("code"));
		vo.setNodeId(rs.getString("node_id"));
		vo.setNodeName(rs.getString("node_name"));
		vo.setNodeCode(rs.getString("node_code"));
		vo.setStatus(rs.getString("status"));
		vo.setMtime(rs.getTimestamp("mtime"));
		vo.setRemark(rs.getString("remark"));
		vo.setSysStr(rs.getString("sysStr"));
		vo.setCont(rs.getString("cont"));
		return vo;
	}

}
